package com.martian.service.impl;

import com.martian.mapper.ActorMapper;
import com.martian.pojo.dto.ActorSimpleDto;
import com.martian.service.ActorService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;

/**
 * @author martian
 * @version V1.0.0
 * @Description
 * @date 2023-05-20 17:23
 */
@Service
public class ActorServiceImpl implements ActorService {
    @Resource
    ActorMapper actorMapper;
    @Override
    public ArrayList<ActorSimpleDto> selectMovieCasts(Integer movieId) {
        return actorMapper.selectMovieActors(movieId);
    }
}
